﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace WcfService1
{
   [ServiceContract]
   public interface IService1
   {
      [OperationContract]
      IList<Person> GetPersonList(int count);
   }

   [DataContract]
   public class Person
   {
      [DataMember(IsRequired = true)]
      public double Height { get; set; }
      [DataMember(IsRequired = true)]
      public int Age { get; set; }
      [DataMember(IsRequired = true)]
      public string Name { get; set; }
   }
}
